Skip to content

M28, second part: JSON and Dublin Core for public items - #75

Merged
SebHenn merged 3 commits into
mainfrom
m28-json-dublin-core
Nov 23, 2026
Merged

SebHenn merged 3 commits into
mainfrom
m28-json-dublin-core

Conversation

@SebHenn

@SebHenn SebHenn commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What

/items/{id}.json for every public item, plus <link rel="alternate" type="application/json"> and DC.* meta tags on the item page. Plan: docs/plan-m28-toward-1-0.md, Part 2.

  • A dedicated allow-list record (PublicItemRecord), never a serialised entity. Starts from VisibleItems and VisibleMedia only.
  • Follows the preview rules: description, files and DC.description are left out when the item may not travel; a record-only item lists no files.
  • Hidden, embargoed, binned, rejected, withdrawn and unknown ids get the same 404 as the item page. The 200 is Cache-Control: public, max-age=600, with no ETag or Last-Modified. Not in the sitemap.
  • With "Let search engines list this archive" off, the JSON carries X-Robots-Tag: noindex and the DC tags are left out; the JSON is deliberately not switched off (said in security.md).

Checks

Release build clean; 581 passed / 6 skipped / 0 failed; browser tests 210/210; gitleaks clean; privacy review found no leak (its concerns are addressed: hostile-text, file-state tests, docs).

Not tested here

Real phones, screen readers, how other tools read the tags.

🤖 Generated with Claude Code

SebHenn and others added 3 commits November 22, 2026 20:49
/items/{id}.json and DC.* tags plus an alternate link on the item page, made from
an allow-listed PublicItemRecord that follows the link-preview rules.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Seb H. <[email protected]>
Say in security.md and the changelog that the JSON and its link stay with
search engines off, and that a 200 can outlive a take-down by ten minutes.
Test hostile and non-Latin text in the tags and the JSON, and that only Ready,
unbinned files are listed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Seb H. <[email protected]>
@SebHenn
SebHenn merged commit 84b0ce1 into main Nov 23, 2026
12 checks passed
@SebHenn
SebHenn deleted the m28-json-dublin-core branch November 23, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant